package cn.bdqn.kaoshi.mapper;

import cn.bdqn.kaoshi.pojo.Role;
import cn.bdqn.kaoshi.pojo.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {

    User findUserByUsername(String username);

    List<Role> findRoleByUid(Integer uid);

    List<User> findUserAll();

    Integer delUser(Integer uid);
}
